<{include file="header.htm"}>
<style>
    .input_group_input {
        background: none;
        width: 100%;
        padding: 0.8em 10px 0.8em 0.8em;
        box-sizing: border-box;
        height: 45px;
        font-size: 14px;
        color: #333;
        text-align: left;
    }
    input[type='password'] {
        border: none;
        outline: none;
    }
</style>
<body>
<header>
    <div class="header_top">
        <div class="st_back"><a href="javascript:window.history.back();"></a></div>
        <h1 class="tit">登录</h1>
        <a class="top_user_reg" href="<{$config.weburl}>/register.php">注册</a>
    </div>
</header>
 <div class="mid_content">
        <div class="st_user_box">
  <form action="login.php" method="post" onsubmit=" return check_data();">
      <input type="hidden" name="action" value="submit"/>
      <div class="login_page clearfix number_password">
        <p><strong>用户名：</strong><input type="text" class="username" value="" name="user" id="user" placeholder="请输入用户名" /></p>
        <p><strong>密码：</strong><input type="password" class="password" value="" name="password" id="password" placeholder="请输入密码" /></p>
          <p><strong>验证码：</strong></strong><input type="text" class="yzm_txt focus" id="randcode" name="randcode"  value="" placeholder="验证码"   />
              <span><img src="<{$config.weburl}>/includes/rand_func.php?rand=<{$now_time}>" style="cursor:pointer;margin-top: 6px;margin-left: 2px" onClick="this.src=this.src+'?rand='+Math.random()" title="点击我更换图片" alt="点击我更换图片"></span>
          </p>
          <div class="forget_word" ><a href="lostmobile.php">忘记密码？</a></div>
      </div>
      <input type="hidden" name="forward" id="forward" value="<{$referer}>">
       <p  class="submit_btn"><input class="login_in" name="" type="submit" value="登陆"></p>
  </form>
            <div style=" text-align: center; color:#333; font-size: 1.6rem; padding-bottom: 10px;">第三方登录</div>

            <div class="quick_login">
                <{if $config.qq_connect==1}>
                <a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=<{$config.qq_app_id}>&redirect_uri=<{$config.weburl}>/oauth.php" class="qq"></a>
                <{/if}>
                <{if $config.sina_connect==1}>
                <a href="<{$sina_login_url}>" class="wb"></a>
                <{/if}>

            </div>


</div>
</div>

<script type="text/javascript">

    function check_data(){
        var user = $("#user").val();
        var password = $("#password").val();
        var randcode = $("#randcode").val();
        if(user == ''){
            alert("用户名不能为空");
            return false;
        } else if(password==''){
            alert("密码不能为空");
            return false;
        } else if(randcode==''){
            alert("验证码不能为空");
            return false;
        }
        return true;
    }

</script>

<{include file="footer.htm"}>
